package model;

public class Discipline {

	private int discipline_id;
	private String name;
	private int credits;

	public Discipline() {

	}

	public Discipline(int discipline_id, String name, int credits) {
		this.discipline_id = discipline_id;
		this.name = name;
		this.credits = credits;
	}

	public int getDiscipline_id() {
		return discipline_id;
	}

	public void setDiscipline_id(int discipline_id) {
		this.discipline_id = discipline_id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getCredits() {
		return credits;
	}

	public void setCredits(int credits) {
		this.credits = credits;
	}
	
	@Override
	public String toString(){
		StringBuilder str = new StringBuilder();
		
		str.append("\nDiscipline: \n");
		str.append("\tdiscipline_id: " + this.discipline_id);
		str.append("\tname: " + this.name);
		str.append("\tcredits: " + this.credits);
		str.append("\n");
		
		return str.toString();
	}

}
